package com.dnui.seven2.entity;

import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName collection
 */
@Data
public class Collection implements Serializable {
    /**
     * 
     */
    private Integer collectionId;

    /**
     * 
     */
    private String collectionMerch;

    /**
     * 
     */
    private String collectionShow;

    /**
     * 
     */
    private String collectionCrowdfunding;

    /**
     * 
     */
    private Integer showPrice;

    /**
     * 
     */
    private Integer merchPrice;

    /**
     * 
     */
    private Integer crowdfundingPrice;

    /**
     * 
     */
    private String showImg;

    /**
     * 
     */
    private String merchImg;

    /**
     * 
     */
    private String crowdfundingImg;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Collection other = (Collection) that;
        return (this.getCollectionId() == null ? other.getCollectionId() == null : this.getCollectionId().equals(other.getCollectionId()))
            && (this.getCollectionMerch() == null ? other.getCollectionMerch() == null : this.getCollectionMerch().equals(other.getCollectionMerch()))
            && (this.getCollectionShow() == null ? other.getCollectionShow() == null : this.getCollectionShow().equals(other.getCollectionShow()))
            && (this.getCollectionCrowdfunding() == null ? other.getCollectionCrowdfunding() == null : this.getCollectionCrowdfunding().equals(other.getCollectionCrowdfunding()))
            && (this.getShowPrice() == null ? other.getShowPrice() == null : this.getShowPrice().equals(other.getShowPrice()))
            && (this.getMerchPrice() == null ? other.getMerchPrice() == null : this.getMerchPrice().equals(other.getMerchPrice()))
            && (this.getCrowdfundingPrice() == null ? other.getCrowdfundingPrice() == null : this.getCrowdfundingPrice().equals(other.getCrowdfundingPrice()))
            && (this.getShowImg() == null ? other.getShowImg() == null : this.getShowImg().equals(other.getShowImg()))
            && (this.getMerchImg() == null ? other.getMerchImg() == null : this.getMerchImg().equals(other.getMerchImg()))
            && (this.getCrowdfundingImg() == null ? other.getCrowdfundingImg() == null : this.getCrowdfundingImg().equals(other.getCrowdfundingImg()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCollectionId() == null) ? 0 : getCollectionId().hashCode());
        result = prime * result + ((getCollectionMerch() == null) ? 0 : getCollectionMerch().hashCode());
        result = prime * result + ((getCollectionShow() == null) ? 0 : getCollectionShow().hashCode());
        result = prime * result + ((getCollectionCrowdfunding() == null) ? 0 : getCollectionCrowdfunding().hashCode());
        result = prime * result + ((getShowPrice() == null) ? 0 : getShowPrice().hashCode());
        result = prime * result + ((getMerchPrice() == null) ? 0 : getMerchPrice().hashCode());
        result = prime * result + ((getCrowdfundingPrice() == null) ? 0 : getCrowdfundingPrice().hashCode());
        result = prime * result + ((getShowImg() == null) ? 0 : getShowImg().hashCode());
        result = prime * result + ((getMerchImg() == null) ? 0 : getMerchImg().hashCode());
        result = prime * result + ((getCrowdfundingImg() == null) ? 0 : getCrowdfundingImg().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", collectionId=").append(collectionId);
        sb.append(", collectionMerch=").append(collectionMerch);
        sb.append(", collectionShow=").append(collectionShow);
        sb.append(", collectionCrowdfunding=").append(collectionCrowdfunding);
        sb.append(", showPrice=").append(showPrice);
        sb.append(", merchPrice=").append(merchPrice);
        sb.append(", crowdfundingPrice=").append(crowdfundingPrice);
        sb.append(", showImg=").append(showImg);
        sb.append(", merchImg=").append(merchImg);
        sb.append(", crowdfundingImg=").append(crowdfundingImg);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}